interface tablsType {
  value: string;
  icons: string;
  color?: string;
}
/** tabs绑定的值 */
const tabsBindValues = ref<string>('枚举');

/** 设置group表单 */
const formGroup = reactive<Namespace.FormType>({
  loadKey: true,
  formFields: {
    unitCode: '',
    unitName: '',
  },
  formRules: [
    [
      {
        title: '枚举名',
        required: true,
        field: 'unitCode',
        placeholder: '请输入枚举名',
        type: 'text',
      },
      {
        title: '说明',
        required: false,
        field: 'unitName',
        placeholder: '请输入说明',
        type: 'text',
      },
    ],
  ],
});

/** 单元列表查询表单写成静态 */
const formData = reactive<Namespace.FormType>({
  loadKey: true,
  formFields: {
    unitCode: '',
    unitName: '',
    remark: '',
    unitContent: '',
  },
  formRules: [
    [
      {
        title: '枚举名',
        required: true,
        field: 'unitCode',
        placeholder: '请输入枚举名',
        type: 'text',
      },
      {
        title: '说明',
        required: false,
        field: 'unitName',
        placeholder: '请输入说明',
        type: 'text',
      },
    ],
    [
      {
        title: '备注',
        required: false,
        field: 'remark',
        colSize: 12,
        type: 'textarea',
        minRows: 5,
      },
    ],
    [
      {
        title: '数据表达式',
        field: 'unitContent',
        type: 'webEditor',
        placeholder: '请输入数据权限',
        language: 'sql',
      },
    ],
  ],
});

export { tabsBindValues, formData, formGroup, tablsType };
